package com.cfs.utils;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by Administrator on 2017/5/27/027.
 */
public class WebUtils {

    public static Boolean isAjax(HttpServletRequest request){
        if(request.getHeader("X-Requested-With") != null  && "XMLHttpRequest".equals(request.getHeader("X-Requested-With").toString())){
            return true;
        }else{
            return false;
        }
    }
}
